<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>马师傅の面包小屋登录</title>
    <link rel="icon" type="image/png" href="assets/admin/i/favicon.ico"/>
    <link rel="stylesheet" href="assets/store/css/login/style.css"/>
</head>
<body class="page-login-v3">
<div class="container">
    <div id="wrapper" class="login-body">
        <div class="login-content">
            <div class="brand">
<svg t="1654498538981" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9807" width="64" height="64"><path d="M515.328683 833.288418c0-111.008318-82.321546-202.911178-189.03085-218.552272v-76.776275a78.891482 78.891482 0 0 0 51.954042-73.975056V78.98295a79.074419 79.074419 0 0 0-78.891482-78.98295h-9.226873a79.074419 79.074419 0 0 0-78.98295 78.98295v385.001865a78.891482 78.891482 0 0 0 51.965476 73.975056v76.604772c-107.258115 15.206619-190.139905 107.338149-190.139905 218.723775 0 11.936624-0.434475 23.175802-0.834649 33.728967-1.589263 41.915387-3.087058 81.509764 25.965588 111.671464 24.227688 25.153806 65.651433 38.34812 137.351213 42.589967a31.648061 31.648061 0 0 0 6.585724 0.70888c0.846083 0 1.634997-0.182937 2.469646-0.251539 15.24092 0.720314 31.659495 1.143355 49.610165 1.143355 113.260727 0 169.079309-12.336798 199.035205-44.007726 27.829256-29.429953 25.736917-67.114927 23.507375-107.029444-0.617412-12.325365-1.337725-25.03947-1.337725-38.553924zM274.298056 78.98295a15.812597 15.812597 0 0 1 15.801163-15.801163h9.261174a15.812597 15.812597 0 0 1 15.801164 15.801163v385.001865a15.812597 15.812597 0 0 1-15.801164 15.846897h-9.226873a15.812597 15.812597 0 0 1-15.835464-15.846897z m173.01245 856.372752c-9.95862 10.518864-35.729838 17.584797-76.341801 21.266399v-108.195665a31.590893 31.590893 0 1 0-63.181787 0v111.065486c-4.573419 0-8.815266 0.171503-13.594488 0.171503-7.191702 0-13.788859-0.148636-20.488919-0.262972v-110.974017a31.590893 31.590893 0 1 0-63.181786 0v107.280981c-34.723686-3.967441-57.247775-10.896171-66.829089-20.854791-9.935753-10.290193-9.661348-30.55044-8.34649-65.457063 0.434475-11.296346 0.880383-23.335872 0.880383-36.118579 0-87.100769 70.887998-157.9659 157.965901-157.9659s157.9659 70.887998 157.9659 157.9659c0 15.27522 0.788915 29.487121 1.486361 42.029723 1.783634 32.219739 2.355311 50.890723-6.345619 60.094729zM777.648577 613.627092v-75.667221a78.891482 78.891482 0 0 0 51.988343-73.975056V78.98295A79.074419 79.074419 0 0 0 750.65397 0h-9.204006a79.074419 79.074419 0 0 0-78.982951 78.98295v385.001865a78.891482 78.891482 0 0 0 51.999777 73.929322v75.667221c-98.900191 15.286654-174.933286 100.740992-174.933286 203.848729 0 113.878139 92.611739 206.524179 206.52418 206.524179s206.512746-92.611739 206.512745-206.524179c0-103.050569-76.033095-188.516341-174.921852-203.802995zM725.6488 78.98295a15.812597 15.812597 0 0 1 15.801164-15.801163h9.204006a15.812597 15.812597 0 0 1 15.801163 15.801163v385.001865a15.812597 15.812597 0 0 1-15.801163 15.801163h-9.204006a15.812597 15.812597 0 0 1-15.801164-15.801163zM746.057684 960.818213a143.491028 143.491028 0 0 1-143.342393-143.330959c0-76.696241 60.597805-139.329217 136.402229-142.987952a29.784393 29.784393 0 0 0 13.880327 0c75.79299 3.658735 136.379362 66.314579 136.379362 142.987952A143.491028 143.491028 0 0 1 746.057684 960.818213z" p-id="9808" fill="#ff9800b3"></path></svg>
                <h2 class="brand-text">马师傅の面包小屋</h2>
            </div>
            <form id="login-form" class="login-form">
                <div class="form-group">
                    <input class="" name="User[user_name]" placeholder="请输入用户名" type="text" required>
                </div>
                <div class="form-group">
                    <input class="" name="User[password]" placeholder="请输入密码" type="password" required>
                </div>
                <div class="form-group">
                    <button id="btn-submit" type="submit">
                        登录
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
<script src="assets/store/js/jquery.min.js"></script>
<script src="assets/layer/layer.js"></script>
<script src="assets/store/js/jquery.form.min.js"></script>
<script>
    $(function () {
        // 表单提交
        var $form = $('#login-form');
        $form.submit(function () {
            var $btn_submit = $('#btn-submit');
            $btn_submit.attr("disabled", true);
            $form.ajaxSubmit({
                type: "post",
                dataType: "json",
                // url: '',
                success: function (result) {
                    $btn_submit.attr('disabled', false);
                    if (result.code === 1) {
                        layer.msg(result.msg, {time: 1500, anim: 1}, function () {
                            window.location = result.url;
                        });
                        return true;
                    }
                    layer.msg(result.msg, {time: 1500, anim: 6});
                }
            });
            return false;
        });
    });
</script>
</html>
